package com.twentytwok.hospitalsystem22K.service;

import com.twentytwok.hospitalsystem22K.bo.DepartmentBo;
import com.twentytwok.hospitalsystem22K.common.R;
import com.twentytwok.hospitalsystem22K.pojo.Department;
import com.twentytwok.hospitalsystem22K.vo.DepartmentVo;

import java.util.List;
import java.util.Map;

public interface DepartmentService {
    // 获取页面数据
    R selectByParams(Map<String,Object> params);

    // 删除数据
    R deleteDepartmentData(Integer id);

    // 更新数据
    R updateDepartmentData(Department department);

    // 添加数据
    R addDepartmentData(Department department);

    // 删除指定ID数据
    R deleteSelectedDepartmentData(List<Department> list);

    // 饼状图
    List<DepartmentBo> selectDepartmentBarBo();

    // 柱形图
    DepartmentVo selectDepartmentBarVo();

    // 获取所有科室信息
    List<Department> selectAllDepartment();
}
